import request from '@/utils/request'

// 查询证券账户信息登记列表
export function listRiskBondAccountRegister(query) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/list',
    method: 'get',
    params: query
  })
}

// 查询证券账户信息登记详细
export function getRiskBondAccountRegister(id) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/' + id,
    method: 'get'
  })
}

// 根据当前用户id查询昵称，和方登记关联表中的关联关系密切家庭成员基本情况（家庭成员姓名）
export function listUserName(query) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/listUserName',
    method: 'get',
    params: query
  })
}

// 保存证券账户信息登记
export function saveRiskBondAccountRegister(data) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/save',
    method: 'post',
    data: data
  })
}

// 删除证券账户信息登记
export function delRiskBondAccountRegister(id) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/' + id,
    method: 'delete'
  })
}

// 导出证券账户信息登记
export function exportRiskBondAccountRegister(query) {
  return request({
    url: '/bondAccountRegister/riskBondAccountRegister/export',
    method: 'get',
    params: query
  })
}
